<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>my-search</title>
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/searchList.css">
</head>

<body>

  <div class="lt_container">
    <!-- 头部 -->
    <div class="lt_header">
      <div class="icon_left">
        <a href="javascript:history.back();" class="mui-icon mui-icon-back"></a>
      </div>
      <h4>商品列表</h4>
    </div>
    <!-- 内容 -->
    <div class="lt_main ">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--搜索框-->
          <div class="search_box">
            <input type="text" placeholder="请输入搜索关键字">
            <button class="mui-btn mui-btn-primary">搜索</button>
          </div>
          <div class="search_sort">
            <ul class="mui-clearfix">
              <li >
                <a href="javascript:;">
                  上架时间
                  <span class="fa fa-angle-down"></span>
                </a>
              </li>
              <li data-type="price">
                <a href="javascript:;">
                  价格
                  <span class="fa fa-angle-down"></span>
                </a>
              </li>
              <li data-type = "num">
                <a href="javascript:;">
                  库存
                  <span class="fa fa-angle-down"></span>
                </a>
              </li>
              <li>
                <a href="javascript:;">
                  折扣
                  <span class="fa fa-angle-down"></span>
                </a>
              </li>
            </ul>
          </div>
          <!-- 产品 -->
          <div class="lt_product mui-clearfix">
            <div class="loading"></div>
          </div>
        </div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="lt_footer">
      <ul class="mui-clearfix">
        <li>
          <a href="index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
          </a>
        </li>
        <li>
          <a href="category.html">
            <span class="fa fa-bars"></span>
            <p>分类</p>
          </a>
        </li>
        <li>
          <a href="cart.html">
            <span class="fa fa-shopping-cart"></span>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <span class="fa fa-user"></span>
            <p>会员中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>

  <script type="text/template" id="tmp">
    {{each data v i}}
    <div class="item mui-pull-left">
      <a href="product.html?id={{v.id}}">
        <img src="{{v.pic[0].picAddr}}" alt="">
        <p class="mui-ellipsis-2">{{v.proName}}</p>
        <p class="price">
          <span class="newprice">{{v.price}}</span>
          <span class="oldprice">{{v.oldPrice}}</span>
        </p>
        <button class="mui-btn mui-btn-primary">立即购买</button>
      </a>
    </div>
    {{/each}}
  </script>


  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/searchList.js"></script>
  <script>



  </script>
</body>

</html>